package com.audi.utils;

import java.util.ArrayList;

import android.util.Log;

import com.audi.dto.DeviceItem;
import com.google.gson.Gson;

public class Utils {
	/*
	 * convert Array to String Json
	 */

	public static String conVertStringJsonArray(
			ArrayList<DeviceItem> mDeviceList) {
		String json = null;
		try {
			Gson gson = new Gson();
			json = gson.toJson(mDeviceList);
		} catch (Exception e) {
			Log.e("conVertStringJsonArray",
					"conVertStringJsonArray: " + e.toString());
		}

		return json;
	}

}
